package com.cl.short_video_java.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cl.short_video_java.pojo.SysLogininfor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cl.short_video_java.vo.sys.LoginInforExceSearch;
import com.github.pagehelper.PageInfo;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
* @author object
* @description 针对表【sys_logininfor(系统访问记录)】的数据库操作Service
* @createDate 2024-10-31 15:58:59
*/
public interface SysLogininforService extends IService<SysLogininfor> {

	void addLog(HttpServletRequest request, String username,String desc);

    Boolean removeLogininforService(String idlist);

    Boolean clearLoginInforService();

    PageInfo<SysLogininfor> pageLogininforService(LoginInforExceSearch loginInforExceSearch);

    ResponseEntity<byte[]> getExceService(LoginInforExceSearch loginInforSearch) throws IOException;

	Page<SysLogininfor> homePage(Integer num, Integer size);
}
